﻿package com._public._utils._mailer
{
	import flash.events.IEventDispatcher;
	
	/**
	 * 邮件发送器接口
	 * 
	 * @author laan
	 * @createTime 2009.8
	 * 
	 * 
	 */	
	public interface IMailer extends IEventDispatcher
	{
		/**
		 * 这是邮箱登陆用户名及密码
		 *  
		 * @param userName
		 * @param password
		 * 
		 */		
		function setPassport(userName:String, password:String):void;
		
		/**
		 * 设置smtp
		 *  
		 * @param host
		 * @param port
		 * 
		 */		
		function setSMTP(host:String, port:uint = 25):void;
		
		
		/**
		 * 设置pop3
		 * 
		 * @param host
		 * @param port
		 * 
		 */		
		function setPOP3(host:String, port:uint = 110):void;
		
		
		/**
		 * 发送邮件
		 *  
		 * @param mail
		 * 
		 */		
		function sendMail(mail:Mail):void;
	}
}